package com.lcxw.hxzbadmin.service.configservice;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.configmapper.ServerConfigMapper;
import com.lcxw.hxzbadmin.entity.configbean.ServerConfig;

@Component
public class ServerConfigService {

    @Resource
    ServerConfigMapper serverConfigMapper;

    public int deleteByPrimaryKey(Integer id) throws Exception{
        return serverConfigMapper.deleteByPrimaryKey(id);
    }

    public int insert(ServerConfig record)throws Exception{
        return serverConfigMapper.insert(record);
    }

    public ServerConfig selectByPrimaryKey(Integer id)throws Exception{
        return serverConfigMapper.selectByPrimaryKey(id);
    }

    public List<ServerConfig> selectAll()throws Exception{
        return serverConfigMapper.selectAll();
    }

    public int updateByPrimaryKey(ServerConfig record)throws Exception{
        return serverConfigMapper.updateByPrimaryKey(record);
    }
}
